<?php
if(!defined("ADMREAD")) exit();
global $a,$conf,$sess,$lang,$ADMIN_PERM_ARRAY,$ADMIN_ID,$CHECK_ADMIN;
$block = array();
if (in_array('poll',$ADMIN_PERM_ARRAY) || in_array($ADMIN_ID,$CHECK_ADMIN['admid'])) {
    $block['id'] = 'polling';
    $block['title'] = $lang['polling_menu_title'];
    $block['link'] = array(
    'poll.php?dn=index&ops='.$sess['hash'] => $lang['all_set'],
    'poll.php?dn=list&ops='.$sess['hash'] => $lang['polling_menu_all'],
    'poll.php?dn=polladd&ops='.$sess['hash'] => $lang['polling_menu_add']
    );
    if ($conf['pcomact'] == 'yes') {
        $block['link'] = @array_merge($block['link'],array('poll.php?dn=pollcomment&ops='.$sess['hash'].(($a) ? '&ajax=1' : '') => array($lang['menu_comment'],true)));
    }
}
?>